//package com.tidc.seaserverweb.controller;
//
//import com.tidc.seaservermapper.dao.UserDao;
//import com.tidc.seaservermodel.entity.Grade;
//import org.springframework.security.core.Authentication;
//import org.springframework.web.bind.annotation.CrossOrigin;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.ResponseBody;
//import org.springframework.web.bind.annotation.RestController;
//
//import javax.annotation.Resource;
//import java.util.ArrayList;
//import java.util.List;
//
///**
// * @author ：冯涛滔
// * @date ：Created in 2020/9/11 20:27
// * @description：
// * @modified By：
// * @version:
// */
//@ResponseBody
//@CrossOrigin(origins = "*",maxAge = 3600)
//@RestController
//public class HelloController {
//    @Resource
//    private UserDao userDao;
//    @GetMapping("/hello")
//    public Object hello(Authentication authentication){
////        List<Grade> list = new ArrayList<>();
////        int a = 0;
////        for (int i = 1; i <= 50 ; i++) {
////            Grade grade = new Grade();
////            grade.setLevelNum(i).setStartExperienceValue(a).setEndExperienceValue(700*i);
////            a = 700*i;
////            list.add(grade);
////        }
////        userDao.levelUp(list);
//        return authentication;
//    }
//}
